<script setup lang="ts">
// Footer组件逻辑
</script>

<template>
  <footer class="footer">
    <div class="container">
      <div class="footer-content">
        <div class="footer-info">
          <h3>海龟汤AI</h3>
          <p>探索无限可能的推理游戏</p>
          <p>&copy; 2024 海龟汤AI聊天室. All rights reserved.</p>
        </div>
        <div class="footer-links">
          <div class="link-group">
            <h4>关于</h4>
            <ul>
              <li><a href="#about">关于我们</a></li>
              <li><a href="#features">功能介绍</a></li>
              <li><a href="#team">开发团队</a></li>
            </ul>
          </div>
          <div class="link-group">
            <h4>资源</h4>
            <ul>
              <li><a href="#help">帮助中心</a></li>
              <li><a href="#faq">常见问题</a></li>
              <li><a href="#guide">游戏指南</a></li>
            </ul>
          </div>
          <div class="link-group">
            <h4>法律</h4>
            <ul>
              <li><a href="#privacy">隐私政策</a></li>
              <li><a href="#terms">使用条款</a></li>
              <li><a href="#contact">联系我们</a></li>
            </ul>
          </div>
        </div>
      </div>
      <div class="footer-bottom">
        <p>本项目仅用于学习和交流，请勿用于商业用途</p>
      </div>
    </div>
  </footer>
</template>

<style scoped>
.footer {
  background-color: #fff;
  border-top: 1px solid #f0f0f0;
  padding: 40px 0 20px;
  margin-top: auto;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  margin-bottom: 30px;
}

.footer-info {
  flex: 0 0 250px;
  margin-bottom: 20px;
}

.footer-info h3 {
  font-size: 20px;
  color: #1890ff;
  margin-bottom: 12px;
}

.footer-info p {
  color: #666;
  font-size: 14px;
  margin-bottom: 8px;
  line-height: 1.6;
}

.footer-links {
  display: flex;
  gap: 60px;
  flex-wrap: wrap;
}

.link-group h4 {
  font-size: 16px;
  color: #333;
  margin-bottom: 16px;
  position: relative;
  padding-bottom: 8px;
}

.link-group h4::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 30px;
  height: 2px;
  background-color: #1890ff;
}

.link-group ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.link-group li {
  margin-bottom: 12px;
}

.link-group a {
  color: #666;
  font-size: 14px;
  text-decoration: none;
  transition: color 0.3s;
  display: inline-block;
}

.link-group a:hover {
  color: #1890ff;
  transform: translateX(4px);
}

.footer-bottom {
  border-top: 1px solid #f0f0f0;
  padding-top: 20px;
  text-align: center;
}

.footer-bottom p {
  color: #999;
  font-size: 12px;
  margin: 0;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .footer-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  
  .footer-info {
    flex: 0 0 auto;
    margin-bottom: 30px;
  }
  
  .footer-links {
    justify-content: center;
    gap: 30px;
  }
  
  .link-group h4::after {
    left: 50%;
    transform: translateX(-50%);
  }
}
</style>